// 该文件专门用于暴露一个 store 对象，整个应用只有一个 store


// 引入creatStore，专门创建 redux中的核心 store
import { createStore, applyMiddleware, combineReducers } from "redux";
import countReducer from "./reducers/count_reducer";
import personReducer from "./reducers/person";

// 引入 thunk，支持异步action
import thunk from "redux-thunk";

import { composeWithDevTools } from "redux-devtools-extension";

const allReducer = combineReducers({
    he:countReducer,
    rens:personReducer
})


export default createStore(allReducer,composeWithDevTools(applyMiddleware(thunk)));